﻿Imports System.Data
Imports Camstar.WebClient.WebServicesProxy.InSiteWebServices

Public Class DispatchingPara
    'OperationType
    Private v_OperationType As OperationTypeEnum.OperationTypeEnum
    Public Property OperationType()
        Get
            Return v_OperationType
        End Get
        Set(ByVal value)
            v_OperationType = value
        End Set
    End Property

    'DispatchToType
    Private v_DispatchToType As DispatchToTypeEnum.DispatchToTypeEnum
    Public Property DispatchToType()
        Get
            Return v_DispatchToType
        End Get
        Set(ByVal value)
            v_DispatchToType = value
        End Set
    End Property

    '派工类型
    Private v_DispatchType As DispatchTypeEnum.DispatchTypeEnum
    Public Property DispatchType()
        Get
            Return v_DispatchType
        End Get
        Set(ByVal value)
            v_DispatchType = value
        End Set
    End Property

    '派工单状态
    Private v_DispatchStatus As DispatchStatusEnum.DispatchStatusEnum
    Public Property DispatchStatus()
        Get
            Return v_DispatchStatus
        End Get
        Set(ByVal value)
            v_DispatchStatus = value
        End Set
    End Property

    '派工单名称
    Private v_Name As String
    Public Property Name()
        Get
            Return v_Name
        End Get
        Set(ByVal value)
            v_Name = value
        End Set
    End Property

    '跟踪卡号
    Private v_ContainerName As String
    Public Property ContainerName()
        Get
            Return v_ContainerName
        End Get
        Set(ByVal value)
            v_ContainerName = value
        End Set
    End Property

    '工序
    Private v_Spec As RevisionedObjectRef
    Public Property Spec()
        Get
            Return v_Spec
        End Get
        Set(ByVal value)
            v_Spec = value
        End Set
    End Property

    '数量
    Private v_Qty As Decimal
    Public Property Qty()
        Get
            Return v_Qty
        End Get
        Set(ByVal value)
            v_Qty = value
        End Set
    End Property

    'Team
    Private v_Team As String
    Public Property Team()
        Get
            Return v_Team
        End Get
        Set(ByVal value)
            v_Team = value
        End Set
    End Property

    '计划开始日期
    Private v_PlannedStartDate As String
    Public Property PlannedStartDate()
        Get
            Return v_PlannedStartDate
        End Get
        Set(ByVal value)
            v_PlannedStartDate = value
        End Set
    End Property

    '计划完成日期
    Private v_PlannedCompletionDate As String
    Public Property PlannedCompletionDate()
        Get
            Return v_PlannedCompletionDate
        End Get
        Set(ByVal value)
            v_PlannedCompletionDate = value
        End Set
    End Property

    'ChildContainer
    Private v_ChildContainer As DataTable
    Public Property ChildContainer()
        Get
            Return v_ChildContainer
        End Get
        Set(ByVal value)
            v_ChildContainer = value
        End Set
    End Property

    'NewChildContainer
    Private v_NewChildContainer As DataTable
    Public Property NewChildContainer()
        Get
            Return v_NewChildContainer
        End Get
        Set(ByVal value)
            v_NewChildContainer = value
        End Set
    End Property

    '主岗
    Private v_MainMfgEmployee As String
    Public Property MainMfgEmployee()
        Get
            Return v_MainMfgEmployee
        End Get
        Set(ByVal value)
            v_MainMfgEmployee = value
        End Set
    End Property

    '副岗
    Private v_MinorMfgEmployee As String
    Public Property MinorMfgEmployee()
        Get
            Return v_MinorMfgEmployee
        End Get
        Set(ByVal value)
            v_MinorMfgEmployee = value
        End Set
    End Property

    '设备
    Private v_Resource As String
    Public Property Resource()
        Get
            Return v_Resource
        End Get
        Set(ByVal value)
            v_Resource = value
        End Set
    End Property

    '工段长派工单（针对小组派工）
    Private v_WorkCenterDispatching As String
    Public Property WorkCenterDispatching()
        Get
            Return v_WorkCenterDispatching
        End Get
        Set(ByVal value)
            v_WorkCenterDispatching = value
        End Set
    End Property

    '派工者
    Private v_DispatchEmployee As String
    Public Property DispatchEmployee()
        Get
            Return v_DispatchEmployee
        End Get
        Set(ByVal value)
            v_DispatchEmployee = value
        End Set
    End Property

    '派工时间
    Private v_DispatchDate As String
    Public Property DispatchDate()
        Get
            Return v_DispatchDate
        End Get
        Set(ByVal value)
            v_DispatchDate = value
        End Set
    End Property

    '工段
    Private v_WorkCenterName As String
    Public Property WorkCenterName()
        Get
            Return v_WorkCenterName
        End Get
        Set(ByVal value)
            v_WorkCenterName = value
        End Set
    End Property

    '接收者
    Private v_ReceiveEmployee As String
    Public Property ReceiveEmployee()
        Get
            Return v_ReceiveEmployee
        End Get
        Set(ByVal value)
            v_ReceiveEmployee = value
        End Set
    End Property
End Class

Public Class DispatchTypeEnum
    Public Enum DispatchTypeEnum

        ''' <summary>
        ''' 工段长派工
        ''' </summary>
        ''' <remarks></remarks>
        WorkCenterDispatch = 0

        ''' <summary>
        ''' 小组派工
        ''' </summary>
        ''' <remarks></remarks>
        TeamDispatch = 1
    End Enum

End Class

Public Class DispatchToTypeEnum
    Public Enum DispatchToTypeEnum

        ''' <summary>
        ''' 派到生产单元
        ''' </summary>
        ''' <remarks></remarks>
        ToTeam = 0

        ''' <summary>
        ''' 派到设备
        ''' </summary>
        ''' <remarks></remarks>
        ToResource = 1
    End Enum

End Class

Public Class OperationTypeEnum
    Public Enum OperationTypeEnum

        ''' <summary>
        ''' 改派
        ''' </summary>
        ''' <remarks></remarks>
        ChangeDispatch = 0

        ''' <summary>
        ''' 任务接收
        ''' </summary>
        ''' <remarks></remarks>
        Receive = 1

        ''' <summary>
        ''' 修改零件编号
        ''' </summary>
        ''' <remarks></remarks>
        Mark = 2
    End Enum

End Class

Public Class DispatchStatusEnum
    Public Enum DispatchStatusEnum

        ''' <summary>
        ''' 已派工
        ''' </summary>
        ''' <remarks></remarks>
        Dispatched = 0

        ''' <summary>
        ''' 已接收
        ''' </summary>
        ''' <remarks></remarks>
        Received = 1

        ''' <summary>
        ''' 已报工
        ''' </summary>
        ''' <remarks></remarks>
        Reported = 2

        ''' <summary>
        ''' 已完成
        ''' </summary>
        ''' <remarks></remarks>
        Finished = 3

        ''' <summary>
        ''' 已关闭
        ''' </summary>
        ''' <remarks></remarks>
        Closed = 4
    End Enum

End Class
